<!DOCTYPE html>
<html lang="zh_CN">
<head>
	<title>叩丁狼CRM(演示版)</title>
	<meta charset="UTF-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1" />
	<link rel="stylesheet" href="/js/bootstrap/css/bootstrap.css" type="text/css" />
	<link rel="stylesheet" href="/css/core.css" type="text/css" />
	<link rel="stylesheet" href="/css/error_css.css" type="text/css" />
	<script type="text/javascript" src="/js/jquery/jquery-2.1.4.min.js"></script>
	<script type="text/javascript" src="/js/plugins/form/jquery.form.js"></script>
	<script type="text/javascript" src="/js/bootstrap/js/bootstrap.min.js"></script>
	<script type="text/javascript" src="/js/plugins/page/jquery.twbsPagination.min.js"></script>
	<script type="text/javascript" src="/js/plugins/messages/jquery.bootstrap.min.js"></script>
	<script type="text/javascript" src="/js/plugins/validate/jquery.validate.min.js"></script>
	<script type="text/javascript" src="/js/plugins/validate/messages_cn.js"></script>
<style type="text/css">
	body{
		background-color:  #FFFFFF;
	}
	.cm-container{
		margin-top: 160px;
	}
	.login {
		width: 360px;
		height: 300px;
		margin: 0px auto;
	}
</style>
<script type="text/javascript">
	$(function(){
        $("#loginForm").ajaxForm(function (data) {
			if (data.success) {
			    location.href = "/department/list.do";
			} else {
				$.messager.alert("温馨提示", data.msg);
			}
        });
	    
		$("#btn_submit").click(function () {
		    $("#loginForm").submit();
        });
	});	
</script>

</head>
<body>
	<div class="container cm-container">
		<h3 class="text-center"><label style="color: #337ab7;">叩丁狼客户管理系统(系统管理平台)</label></h3>
		<hr />
		<div class="login">
			<!--提交的地址必须是/login.html-->
			<form id="loginForm" action="/login.html" method="post">
				<div class="form-group form-group-lg">
					<div class="input-group">
						<div class="input-group-addon">账号</div>
						<input class="form-control" name="username" value="admin"/>
					</div>
				</div>
				<div class="form-group form-group-lg">
					<div class="input-group">
						<div class="input-group-addon">密码</div>
						<input class="form-control" name="password" type="password" value="1"/>
					</div>
				</div>
				<div class="form-group">
					<button type="button" class="btn btn-lg btn-primary btn-block" id="btn_submit">登录</button>
				</div>
			</form>
		</div>
	</div>
</body>
</html>